#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
    int i, j, k;
    char a;

    while (scanf("%c", &a) != EOF)
        for (i = 1; i <= 5; i++)
        {
            for (j = 5 - i; j >= 1; j--)
            {
                printf(" ");
            }
            for (k = 1; k <= i; k++)
                printf("%c ",a);
            printf("\n");
        }
    return 0;
}